from Extend.GrandClass import GrandClass
import xmltodict
from Extend.FileMethod import FileExtend
from sanweijiaXml.model import DataModel


class DataToXML(GrandClass):
    pass

    def writeXML(self):
        path = ''
        datamodel = DataModel()
        gg = datamodel.result
        xml_content = xmltodict.unparse(gg)
        FileExtend.writeFile(path, xml_content)


